-- CALC_STONE_SKILL_COST
--  玩家当前血量
-- @param  stoneId      石柱id
-- @param  skillId      技能id
return function(stoneId, skillId)
    local mpCof =  MagicStoneM.query(stoneId, "apply_cost");
    local mp = 0;

    local stoneData = ME.user.dbase:query("stone", {});
    local level = stoneData[stoneId] or 0;

    if type(mpCof) == 'number' then
        mp = mpCof;
    elseif level > 0 then
        mp = mpCof[level];
    end

    return mp;
end
